<?php
 class Videos extends CI_Model{
    
    function __construct(){
        parent::__construct();
    }
    
    /**
     * Get list product index
     * @author tien.nguyen
     * @return array
     */
    public function getListIndex(){
       $this->db->where('Visible', 1);
       $this->db->limit(1);
       $this->db->order_by('CreatedDate', 'DESC');
       $query = $this->db->get('videos');
        
       return $query->result_array(); 
    }
 }
?>